// var http = require('http');
// http.createServer(function(req, res){
// 	if(req.url != '/favicon.ico'){
// 		res.writeHead(200,{'Content-type':'text/html;charset=utf-8'});
// 		res.write('hello world');
// 		res.end();
// 	}
// }).listen(8000);
// console.log('Server is runnint at port 8000');


var http = require('http');
var url = require('url');
var util = require('util');

http.createServer(function(req, res){
	res.writeHead(200,{'Content-type':'text/html;charset=utf-8'});
	res.end(util.inspect(url.parse(req.url,true)));
}).listen(8000);
